package net.xo68.coordinator.core.gid;

import lombok.Data;

import java.io.Serializable;

/**
 * 获取最新编号的响应
 * @author wuxie
 * @version 2020-9-28
 */
@Data
public class NewIdResponse implements Serializable {

    /**
     * 编号的键
     */
    private long idKey;

    /**
     * 获到新编号
     */
    private long value;

    /**
     * 状态
     */
    private boolean status;

    /**
     * redirect peer id
     */
    private String redirect;

    /**
     * 错误信息
     */
    private String error;

}
